
package IGU;

import com.sun.awt.AWTUtilities;
import java.awt.Dimension;
import java.awt.Toolkit;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;

/**
 *
 * @author luisramirezmartinez
 */
public class Menu extends javax.swing.JFrame {

    /** Creates new form Menu */
    public Menu() {
        setUndecorated(true);
        setResizable(false);
        AWTUtilities.setWindowOpaque(this, false);
        initComponents();
         Dimension screenSize = Toolkit.getDefaultToolkit().getScreenSize();
        Dimension frameSize = this.getSize();
        if (frameSize.height > screenSize.height) {
            frameSize.height = screenSize.height;
        }
        if (frameSize.width > screenSize.width) {
            frameSize.width = screenSize.width;
        }
        this.setLocation((screenSize.width - frameSize.width) / 2, 65);
       
          this.titleBar1.addCloseAction(new ActionListener() {

            @Override
            public void actionPerformed(ActionEvent ae) {
                System.exit(0);
            }
        });
    }

    /** This method is called from within the constructor to
     * initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is
     * always regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        panelNice5 = new org.edisoncor.gui.panel.PanelNice();
        panelNice1 = new org.edisoncor.gui.panel.PanelNice();
        panelImage1 = new org.edisoncor.gui.panel.PanelImage();
        panelNice2 = new org.edisoncor.gui.panel.PanelNice();
        panelImage2 = new org.edisoncor.gui.panel.PanelImage();
        panelNice3 = new org.edisoncor.gui.panel.PanelNice();
        panelImage3 = new org.edisoncor.gui.panel.PanelImage();
        panelNice4 = new org.edisoncor.gui.panel.PanelNice();
        panelImage4 = new org.edisoncor.gui.panel.PanelImage();
        labelMetric1 = new org.edisoncor.gui.label.LabelMetric();
        panelNice6 = new org.edisoncor.gui.panel.PanelNice();
        panelImage5 = new org.edisoncor.gui.panel.PanelImage();
        panelNice7 = new org.edisoncor.gui.panel.PanelNice();
        panelImage6 = new org.edisoncor.gui.panel.PanelImage();
        titleBar1 = new org.edisoncor.gui.varios.TitleBar();

        setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
        setUndecorated(true);
        getContentPane().setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout());

        panelNice5.setBackground(new java.awt.Color(51, 51, 51));
        panelNice5.addMouseMotionListener(new java.awt.event.MouseMotionAdapter() {
            public void mouseMoved(java.awt.event.MouseEvent evt) {
                panelNice5MouseMoved(evt);
            }
        });
        panelNice5.setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout());

        panelNice1.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                panelNice1MouseClicked(evt);
            }
        });
        panelNice1.addMouseMotionListener(new java.awt.event.MouseMotionAdapter() {
            public void mouseMoved(java.awt.event.MouseEvent evt) {
                panelNice1MouseMoved(evt);
            }
        });
        panelNice1.setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout());

        panelImage1.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Iconos/SAMI_reload 2.png"))); // NOI18N

        org.jdesktop.layout.GroupLayout panelImage1Layout = new org.jdesktop.layout.GroupLayout(panelImage1);
        panelImage1.setLayout(panelImage1Layout);
        panelImage1Layout.setHorizontalGroup(
            panelImage1Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
            .add(0, 32, Short.MAX_VALUE)
        );
        panelImage1Layout.setVerticalGroup(
            panelImage1Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
            .add(0, 32, Short.MAX_VALUE)
        );

        panelNice1.add(panelImage1, new org.netbeans.lib.awtextra.AbsoluteConstraints(20, 12, -1, -1));

        panelNice5.add(panelNice1, new org.netbeans.lib.awtextra.AbsoluteConstraints(40, 60, 70, 70));

        panelNice2.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                panelNice2MouseClicked(evt);
            }
        });
        panelNice2.addMouseMotionListener(new java.awt.event.MouseMotionAdapter() {
            public void mouseMoved(java.awt.event.MouseEvent evt) {
                panelNice2MouseMoved(evt);
            }
        });
        panelNice2.setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout());

        panelImage2.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Iconos/SAMI_catalogos 2.png"))); // NOI18N

        org.jdesktop.layout.GroupLayout panelImage2Layout = new org.jdesktop.layout.GroupLayout(panelImage2);
        panelImage2.setLayout(panelImage2Layout);
        panelImage2Layout.setHorizontalGroup(
            panelImage2Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
            .add(0, 32, Short.MAX_VALUE)
        );
        panelImage2Layout.setVerticalGroup(
            panelImage2Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
            .add(0, 32, Short.MAX_VALUE)
        );

        panelNice2.add(panelImage2, new org.netbeans.lib.awtextra.AbsoluteConstraints(20, 10, -1, -1));

        panelNice5.add(panelNice2, new org.netbeans.lib.awtextra.AbsoluteConstraints(130, 60, 70, 70));

        panelNice3.addMouseMotionListener(new java.awt.event.MouseMotionAdapter() {
            public void mouseMoved(java.awt.event.MouseEvent evt) {
                panelNice3MouseMoved(evt);
            }
        });
        panelNice3.setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout());

        panelImage3.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Iconos/SAMI_search 2.png"))); // NOI18N

        org.jdesktop.layout.GroupLayout panelImage3Layout = new org.jdesktop.layout.GroupLayout(panelImage3);
        panelImage3.setLayout(panelImage3Layout);
        panelImage3Layout.setHorizontalGroup(
            panelImage3Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
            .add(0, 33, Short.MAX_VALUE)
        );
        panelImage3Layout.setVerticalGroup(
            panelImage3Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
            .add(0, 32, Short.MAX_VALUE)
        );

        panelNice3.add(panelImage3, new org.netbeans.lib.awtextra.AbsoluteConstraints(20, 10, -1, -1));

        panelNice5.add(panelNice3, new org.netbeans.lib.awtextra.AbsoluteConstraints(220, 60, 70, 70));

        panelNice4.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                panelNice4MouseClicked(evt);
            }
        });
        panelNice4.addMouseMotionListener(new java.awt.event.MouseMotionAdapter() {
            public void mouseMoved(java.awt.event.MouseEvent evt) {
                panelNice4MouseMoved(evt);
            }
        });
        panelNice4.setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout());

        panelImage4.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Iconos/SAMI_movimientos 2.png"))); // NOI18N

        org.jdesktop.layout.GroupLayout panelImage4Layout = new org.jdesktop.layout.GroupLayout(panelImage4);
        panelImage4.setLayout(panelImage4Layout);
        panelImage4Layout.setHorizontalGroup(
            panelImage4Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
            .add(0, 33, Short.MAX_VALUE)
        );
        panelImage4Layout.setVerticalGroup(
            panelImage4Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
            .add(0, 32, Short.MAX_VALUE)
        );

        panelNice4.add(panelImage4, new org.netbeans.lib.awtextra.AbsoluteConstraints(20, 11, -1, -1));

        panelNice5.add(panelNice4, new org.netbeans.lib.awtextra.AbsoluteConstraints(43, 152, 70, 70));

        labelMetric1.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
        labelMetric1.setText("  ");
        panelNice5.add(labelMetric1, new org.netbeans.lib.awtextra.AbsoluteConstraints(40, 250, 253, -1));

        panelNice6.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                panelNice6MouseClicked(evt);
            }
        });
        panelNice6.addMouseMotionListener(new java.awt.event.MouseMotionAdapter() {
            public void mouseMoved(java.awt.event.MouseEvent evt) {
                panelNice6MouseMoved(evt);
            }
        });
        panelNice6.setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout());

        panelImage5.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Iconos/SAMI_folder 2.png"))); // NOI18N

        org.jdesktop.layout.GroupLayout panelImage5Layout = new org.jdesktop.layout.GroupLayout(panelImage5);
        panelImage5.setLayout(panelImage5Layout);
        panelImage5Layout.setHorizontalGroup(
            panelImage5Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
            .add(0, 33, Short.MAX_VALUE)
        );
        panelImage5Layout.setVerticalGroup(
            panelImage5Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
            .add(0, 32, Short.MAX_VALUE)
        );

        panelNice6.add(panelImage5, new org.netbeans.lib.awtextra.AbsoluteConstraints(20, 11, -1, -1));

        panelNice5.add(panelNice6, new org.netbeans.lib.awtextra.AbsoluteConstraints(130, 150, 70, 70));

        panelNice7.addMouseMotionListener(new java.awt.event.MouseMotionAdapter() {
            public void mouseMoved(java.awt.event.MouseEvent evt) {
                panelNice7MouseMoved(evt);
            }
        });
        panelNice7.setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout());

        panelImage6.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Iconos/SAMI_Admiracion 2.png"))); // NOI18N

        org.jdesktop.layout.GroupLayout panelImage6Layout = new org.jdesktop.layout.GroupLayout(panelImage6);
        panelImage6.setLayout(panelImage6Layout);
        panelImage6Layout.setHorizontalGroup(
            panelImage6Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
            .add(0, 32, Short.MAX_VALUE)
        );
        panelImage6Layout.setVerticalGroup(
            panelImage6Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
            .add(0, 32, Short.MAX_VALUE)
        );

        panelNice7.add(panelImage6, new org.netbeans.lib.awtextra.AbsoluteConstraints(20, 10, 32, 32));

        panelNice5.add(panelNice7, new org.netbeans.lib.awtextra.AbsoluteConstraints(220, 150, 70, 70));

        titleBar1.setTitulo("Menu Principal");
        titleBar1.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                titleBar1MouseClicked(evt);
            }
        });
        panelNice5.add(titleBar1, new org.netbeans.lib.awtextra.AbsoluteConstraints(0, 4, 340, -1));

        getContentPane().add(panelNice5, new org.netbeans.lib.awtextra.AbsoluteConstraints(0, 0, 340, 290));

        pack();
    }// </editor-fold>//GEN-END:initComponents

    private void panelNice1MouseMoved(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_panelNice1MouseMoved
        this.labelMetric1.setText("BITACORA");
    }//GEN-LAST:event_panelNice1MouseMoved

    private void panelNice5MouseMoved(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_panelNice5MouseMoved
        this.labelMetric1.setText("");
    }//GEN-LAST:event_panelNice5MouseMoved

    private void panelNice2MouseMoved(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_panelNice2MouseMoved
        this.labelMetric1.setText("ORDENES");
    }//GEN-LAST:event_panelNice2MouseMoved

    private void panelNice3MouseMoved(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_panelNice3MouseMoved
        this.labelMetric1.setText("EMPLEADOS");
    }//GEN-LAST:event_panelNice3MouseMoved

    private void panelNice4MouseMoved(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_panelNice4MouseMoved
        this.labelMetric1.setText("PLATILLOS / BEBIDAS");
    }//GEN-LAST:event_panelNice4MouseMoved

    private void panelNice6MouseMoved(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_panelNice6MouseMoved
        this.labelMetric1.setText("MESAS");
    }//GEN-LAST:event_panelNice6MouseMoved

    private void panelNice7MouseMoved(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_panelNice7MouseMoved
        this.labelMetric1.setText("VENTAS");
    }//GEN-LAST:event_panelNice7MouseMoved

    private void titleBar1MouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_titleBar1MouseClicked
       
        
    }//GEN-LAST:event_titleBar1MouseClicked

    private void panelNice6MouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_panelNice6MouseClicked
       Mesas m= new Mesas();
       m.setVisible(true);
    }//GEN-LAST:event_panelNice6MouseClicked

    private void panelNice1MouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_panelNice1MouseClicked
        Bitacora o= new Bitacora();
        o.setVisible(true);
    }//GEN-LAST:event_panelNice1MouseClicked

    private void panelNice2MouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_panelNice2MouseClicked
        Ordenes o= new Ordenes();
        o.setVisible(true);
    }//GEN-LAST:event_panelNice2MouseClicked

    private void panelNice4MouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_panelNice4MouseClicked
        Platillos o= new Platillos();
        o.setVisible(true);
    }//GEN-LAST:event_panelNice4MouseClicked

    /**
     * @param args the command line arguments
     */
    public static void main(String args[]) {
        /* Set the Nimbus look and feel */
        //<editor-fold defaultstate="collapsed" desc=" Look and feel setting code (optional) ">
        /* If Nimbus (introduced in Java SE 6) is not available, stay with the default look and feel.
         * For details see http://download.oracle.com/javase/tutorial/uiswing/lookandfeel/plaf.html 
         */
        try {
            for (javax.swing.UIManager.LookAndFeelInfo info : javax.swing.UIManager.getInstalledLookAndFeels()) {
                if ("Nimbus".equals(info.getName())) {
                    javax.swing.UIManager.setLookAndFeel(info.getClassName());
                    break;
                }
            }
        } catch (ClassNotFoundException ex) {
            java.util.logging.Logger.getLogger(Menu.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        } catch (InstantiationException ex) {
            java.util.logging.Logger.getLogger(Menu.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        } catch (IllegalAccessException ex) {
            java.util.logging.Logger.getLogger(Menu.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        } catch (javax.swing.UnsupportedLookAndFeelException ex) {
            java.util.logging.Logger.getLogger(Menu.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        }
        //</editor-fold>

        /* Create and display the form */
        java.awt.EventQueue.invokeLater(new Runnable() {

            @Override
            public void run() {
                new Menu().setVisible(true);
            }
        });
    }
    // Variables declaration - do not modify//GEN-BEGIN:variables
    private org.edisoncor.gui.label.LabelMetric labelMetric1;
    private org.edisoncor.gui.panel.PanelImage panelImage1;
    private org.edisoncor.gui.panel.PanelImage panelImage2;
    private org.edisoncor.gui.panel.PanelImage panelImage3;
    private org.edisoncor.gui.panel.PanelImage panelImage4;
    private org.edisoncor.gui.panel.PanelImage panelImage5;
    private org.edisoncor.gui.panel.PanelImage panelImage6;
    private org.edisoncor.gui.panel.PanelNice panelNice1;
    private org.edisoncor.gui.panel.PanelNice panelNice2;
    private org.edisoncor.gui.panel.PanelNice panelNice3;
    private org.edisoncor.gui.panel.PanelNice panelNice4;
    private org.edisoncor.gui.panel.PanelNice panelNice5;
    private org.edisoncor.gui.panel.PanelNice panelNice6;
    private org.edisoncor.gui.panel.PanelNice panelNice7;
    private org.edisoncor.gui.varios.TitleBar titleBar1;
    // End of variables declaration//GEN-END:variables
}
